﻿using System.ComponentModel.DataAnnotations;
using KLS.PPDS.Core.Entity.BaseEntities;
using KLS.PPDS.Resources;

namespace KLS.PPDS.Core.Entity
{
    public class Publication:AuditEntity
    {


        public virtual int CompanyId { get; set; }
        
        [Required]
        public virtual string PublicationName { get; set; }
        public virtual string PublicationNumber { get; set; }
        public virtual int Month { get; set; }
        public virtual int Year { get; set; }
        public virtual int? Pages { get; set; }
        public virtual string MonthName { get; set; }
        public virtual Company Company { get; set; }

        public virtual string DdlPublicationName
        {
            get 
            {
                return PublicationName + " " + CommonString.nr + " " + PublicationNumber + " / " + Month + "-" + Year;
            }
        }
    }
}
